<%@ page import="java.util.List" %>
<%@ page import="com.tlc.bean.Book" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <title>Title</title>
    <style>
        body {
            background-color: rgba(220, 20, 60, 0.075);
        }

        img {
            width: 256px;
            height: 303px;
            position: absolute;
            right: 320px;
            top: 100px;
            box-shadow: 5px 5px 5px 5px rgba(1, 22, 21, 0.3);
        }

        ul {
            position: absolute;
            left: 210px;
            top: 120px;
        }
    </style>
</head>

<body>

<center>
    <h1>图书详情</h1>
</center>
<img src="/image/${book.cover}" alt="image">
<ul>
    <li>图书编号: ${book.sid}</li>
    <li>书名: ${book.sname}</li>
    <li>价格: ${book.price}元</li>
    <li>作者: ${book.auther}</li>
    <li>出版社: ${book.phouse}</li>
    <li>出版时间: ${book.dtime}</li>
    <li>图书数量: ${book.bcount}本</li>
    <li>图书状态【售否】： ${book.nsale}</li>
    <li>图书种类：
        <c:if test="${fn:contains(book.classify, '1')}">小说</c:if>
        <c:if test="${fn:contains(book.classify, '2')}">儿童读物</c:if>
        <c:if test="${fn:contains(book.classify, '3')}">摄影绘画</c:if>
        <c:if test="${fn:contains(book.classify, '4')}">非小说类</c:if>
        <c:if test="${fn:contains(book.classify, '5')}">科技类</c:if>
    </li>
    <li>支持语种：${book.lang}</li>
    <li>
        <button onclick="history.back()">返回</button>
    </li>
</ul>
</body>
</html>
